import React, { PureComponent, Fragment } from 'react';
import { Tag } from 'antd';
import PropTypes from 'prop-types';
const { CheckableTag } = Tag;
export default class MyTag extends React.Component {
    static propTypes = {
        onchecked: PropTypes.func,
      };
    state = { checked: false };
    handleChange = (checked) => {
        const { onchecked ,value } = this.props;
        this.setState({ checked });
        onchecked(checked,value);
    }

    render() {
        return <CheckableTag {...this.props} checked={this.state.checked} onChange={this.handleChange} />;
    }

}